/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-13 15:07:10
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';
//  查询试乘试驾路线信息
export const searchTestDriveWay = params => axios.get(`${SERVER.CYXDMS_CLUE}/potenCusManage/testDriveWay`, { params });
//  试乘试驾路线跳转编辑页面
export const editQueryTestDriveWay = id => axios.get(`${SERVER.CYXDMS_CLUE}/potenCusManage/testDriveWay/${id}`, { id: Number(id) });
//  试乘试驾路线新增保存
export const addTestDriveWay = params => axios.post(`${SERVER.CYXDMS_CLUE}/potenCusManage/testDriveWay`, params);
//  试乘试驾路线编辑保存
export const editTestDriveWay = (params,id) => axios.put(`${SERVER.CYXDMS_CLUE}/potenCusManage/testDriveWay/${id}`, params);
